package cn.rongdao.jrkabao.model.remind;

import com.mifengkong.frtools.http.request.HttpFunction;

import cn.rongdao.jrkabao.bean.remind.RemindBean;
import cn.rongdao.jrkabao.model.api.BaseKaMaoModel;
import io.reactivex.Observable;
import io.reactivex.Observer;

/**
 * Created by jack on 2017/9/11
 */

public class RemindModel extends BaseKaMaoModel {

    public static RemindModel getInstance() {
        return getPresent(RemindModel.class);
    }

    public void execute(Observer<RemindBean> observer) {
        Observable<RemindBean> observable = mServletApi.getRemindList(mParams).map(new HttpFunction<RemindBean>());
        toSubscribe(observable, observer);
    }
}